package com.luxsoft.sw3.ui.utils;

import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.SwingWorker;

import org.springframework.jdbc.core.JdbcTemplate;


import com.luxsoft.siipap.swing.controls.AbstractControl;
import com.luxsoft.siipap.util.DBUtils;


public class BIDataBaseLabel extends AbstractControl{
	
	

	@Override
	protected JComponent buildContent() {
		JLabel l=new JLabel();
		Icon i=getIconFromResource("images2/server_go.png");
		l.setIcon(i);
		l.setText("DB:");
		//sincronize();
		/*
		l.addMouseListener(new MouseAdapter(){			
			public void mouseClicked(MouseEvent e) {
				if(e.getClickCount()==2){
					System.out.println("Sincronizando");
					sincronize();
				}
			}			
		});
		*/
		return l;
	}
	
	

	

}
